const user = require('../controllers/user')
const { apiPreFix } = require('../config').server
module.exports = (router) => {
  /**
   * 文件上传（存到本地）
   */
  router.post(`${apiPreFix}/user/createDoubleRoom`, async ctx => {
    await user.createDoubleRoom(ctx)
  })
  router.post(`${apiPreFix}/user/createRoom`, async ctx => {
    await user.createRoom(ctx)
  })
}